<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$eju.field.info.ask_title}-问答中心</title>
<meta http-equiv="Cache-Control" content="no-transform" />
<link href="{eju:global name='web_cmspath' /}/favicon.ico" rel="shortcut icon" type="image/x-icon" />
{eju:static file="skin/css/eju.css" /}
{eju:static file="skin/css/news.css" /}
{eju:static file="skin/css/css.css" /}
{eju:static file="skin/css/loupan.css" /}
{eju:static file="skin/js/jquery-1.10.2.min.js" /}
{eju:static file="skin/js/jquery.qrcode.min.js" /}
</head>
<!--[if IE 6]>
  <link rel="stylesheet" href="{eju:static file="skin/css/ie6.css" /}">
  <script src="{eju:static file="skin/js/dd_belatedpng_0.0.8a.js" /}" type="text/javascript" ></script> 
  <script type="text/javascript"> 
    DD_belatedPNG.fix('*'); 
  </script>  
<![endif]-->
<body>
<!-- 头部 --> 
{eju:include file="header.htm"/} 
<!-- 头部:end--> 
{eju:static file="skin/js/jquery.form.js" /}
{eju:static file="skin/js/layer.js" /} 
<!-- crumbs -->
<div class="house-crumbs">
  <div class="crumbs"> <span>您的位置：</span>{eju:position style="crumb" /}<em>&gt;</em>{$eju.field.info.fang_title} </div>
</div>
<!-- crumbs:end-->
<div class="w1200"> 
  <!-- 扫码拨号 -->
  <div id="saoma">
    <p style="color: #fff;padding: 5px;"><img src="{eju:global name='web_templets_pc' /}/skin/images/tel.png">&nbsp;微信扫码打电话</p>
    <div id="qrcode3"> </div>
    <script>
			$(function(){
				$('#qrcode3').qrcode("{eju:diyurl type='bohao'/}");
				$("#qrcode3").mouseover(function(){
				});
				})
			</script>
    <p style="position: absolute;top: -20px;left: 0px;cursor: pointer;color: #999;" class="closesaoma">关闭</p>
    <p style="color: #fff;padding-top: 5px;">售楼处免费热线</p>
  </div>
  <!-- 问答 -->
  <div class="content-center clearfix">
    <div class="left870">
      <div class="h20"></div>
      <!-- 2017-11-30 -->
      <div class="wenda-tit">
        <h3><a href="{$eju.field.info.fang_arcurl}" title="{$eju.field.info.fang_title}">[{$eju.field.info.fang_title}]</a>{$eju.field.info.ask_title}</h3>
        <ul>
          <li>提问者：{$eju.field.info.username}<span>|</span></li>
          <li>浏览次数{$eju.field.info.click}次<span>|</span></li>
          <li>问题来自：{$eju.field.info.location}<span>|</span></li>
          <li>{$eju.field.info.add_time|MyDate="Y-m-d",###}</li>
          <div class="clear"></div>
        </ul>
      </div>
      <!-- 2017-11-30 end-->
      <div class="h10"></div>
      {eju:notempty name="$canAnswer"}
      <div class="wenda-btn1">我们有更好的答案</div>
      <div class="wd-content pr">
        <textarea class="wd-textarea" id="ask_content" name="ask_content" style="color: rgb(153, 153, 153);" placeholder="请输入回复内容"></textarea>
        <span style="position: absolute;right: 27px;bottom: 68px;"><b id="event_ask_remainder" style="color: rgb(136, 136, 136);">30</b> 字</span>
        <div class="wd-num"> <a href="javascript:void(0);" class="trs" data-url="{$eju.field.AddAnswerUrl}" onclick="return answer_submit(this);" id="answersubmit">提交</a> </div>
      </div>
      {/eju:notempty}
      {eju:static file="/public/plugins/Ueditor/ueditor.config.js"/}
      {eju:static file="/public/plugins/Ueditor/ueditor.all.min.js"/}
      {eju:static file="/public/plugins/Ueditor/lang/zh-cn/zh-cn.js"/} 
      <script type="text/javascript">
//          function show_answer(){
//              $("#answer_click").hide();
//              $("#answer_edit").show();
//          }
//          function hide_answer(){
//              $("#answer_click").show();
//              $("#answer_edit").hide();
//          }
//          window.UEDITOR_HOME_URL = "__ROOT_DIR__/public/plugins/Ueditor/";
//          UE.getEditor('ask_content',{
//              serverUrl :"{:url('user/Uploadify/index',array('savepath'=>'weapp'))}",
//              zIndex: 999,
//              initialFrameWidth: "100%", //初化宽度
//              initialFrameHeight: 300, //初化高度
//              focus: false, //初始化时，是否让编辑器获得焦点true或false
//              maximumWords: 99999,
//              removeFormatAttributes: 'class,style,lang,width,height,align,hspace,valign',//允许的最大字符数 'fullscreen',
//              pasteplain:false, //是否默认为纯文本粘贴。false为不使用纯文本粘贴，true为使用纯文本粘贴
//              autoHeightEnabled: false,
//              toolbars: [["forecolor", "backcolor", "removeformat", "|", "simpleupload", "unlink"]],
//          });
//
//          //必须在提交前渲染编辑器；
//          function ask_content() {
//              //判断编辑模式状态:0表示【源代码】HTML视图；1是【设计】视图,即可见即所得；-1表示不可用
//              if(UE.getEditor("ask_content").queryCommandState('source') != 0) {
//                  UE.getEditor("ask_content").execCommand('source'); //切换到【设计】视图
//              }
//          }
          function answer_submit(obj){
//              if (!UE.getEditor("ask_content").getContent()) {
//                  layer.msg('请写下你的回答！', {time: 1500, icon: 2});
//                  return false;
//              }
//              var content = UE.getEditor("ask_content").getContent();
              var content = $("#ask_content").val();
//              layer_loading('正在处理');
              $.ajax({
                  url: $(obj).data('url'),
                  data: {content:content},
                  type:'post',
                  dataType:'json',
                  success:function(res){
//                      layer.closeAll();
                      if (1 == res.code) {
//                          if (res.data.review) {
//                              var times = 2500;
//                          }else{
//                              var times = 1000;
//                          }
                          $("#ask_content").val("");
//                          layer.msg(res.msg, {time: times},function(){
                              window.location.reload();
//                          });
                      } else {
                          alert(res.msg);
//                          layer.msg(res.msg, {time: 1500, icon: 2});
                      }
                  },
                  error : function() {
                      alert('网络失败，请刷新页面后重试');
//                      layer.closeAll();
//                      layer.alert('网络失败，请刷新页面后重试', {icon: 5, closeBtn: 0});
                  }
              });
          }
      </script> 
      <!-- 列表 -->
      <div class="h20"></div>
      {eju:answer id='field' pagesize='10'}
      <div class="wenda-list">
        <h3>全部回答(共{eju:countlist/}条)</h3>
        <div class="h20"></div>
        <ul>
          {eju:volist name="$field.AnswerData" id="vo"}
          <li>
            <div class="fl"> <img src="{$vo.litpic}" width="80" height="80"> </div>
            <div class="fl pl20 w600">
              <div class="xg-tit"> <span class="fr c999">{$vo.add_time|MyDate="Y-m-d",###}</span>
                <p class="c999">回答者：{$vo.username}</p>
                <div class="clear"></div>
              </div>
              <div class="xg-content mt10"> {$vo.content}</div>
            </div>
            <div class="clear"></div>
          </li>
          {/eju:volist}
        </ul>
        <div class="clear"></div>
      </div>
      {/eju:answer}
      {eju:ask id="field" bestanswer="off" pagesize='10'}
      <div class="h20"></div>
      <div class="wenda-xg"><a href="{$eju.field.info.fang_arcurl}" title="{$eju.field.info.fang_title}">{$eju.field.info.fang_title}</a>楼盘相关问答</div>
      <div class="wenda">
        <ul>
          {eju:volist name="$field.AskData" id="vo"}
          <li>
            <div class="l all366C"><a href="{$vo.AskUrl}" rel="nofollow" target="_blank">{$vo.ask_title}</a></div>
            <div class="r"><i class="i1">提问者：{$vo.username}</i><i class="i2" style="border:0"><font class="red">{$vo.replies}</font> 回答 </i><i class="i3">{$vo.add_time|MyDate="Y-m-d",###}</i></div>
          </li>
          {/eju:volist}
        </ul>
      </div>
      <div class="clear"></div>
      <div class="h10"></div>
      <div class="pages">
        <ul class="tcdPageCode fenx">
          {eju:pagelist listitem="index,end,pageno,pre,next" listsize="10"/}
        </ul>
      </div>
      <div class="clear"></div>
      <div class="h10"></div>
      <div class="other-list">
        <div>
          <h2>热门问答</h2>
        </div>
        <div class="mt5">
          <ul class="alltw_box" id="moreAsks" data-page="1">
            {eju:volist name="$field.AskData" id="vo"}
            <li class="border_b">
              <dl>
                <dd class="dd1"> <span class="color1_orange"> {eju:notempty name="$vo.fang_title"}<i class="all366C"><a href="{$vo.AskUrl}" target="_blank">[{$vo.fang_title}]</a></i>{/eju:notempty} <a target="_blank" href="{$vo.AskUrl}" class="sensitive_word_ask_title">{$vo.ask_title}</a> </span> </dd>
                <dd class="dd5" style="font-size:11px;">{$vo.add_time|MyDate="Y-m-d",###}</dd>
              </dl>
            </li>
            {/eju:volist}
          </ul>
        </div>
      </div>
      {/eju:ask} 
      <!-- 列表 end--> 
    </div>
    <!-- right -->
    <div class="loupan-list-right mt10" style="margin-left: 0"> 
      <!-- 订阅 -->
      <div class="lp_information_box clearfix info-solution w280">
        <div class="bigtit">
          <h3 style="font-weight:bold">获取最新优惠动态</h3>
        </div>
        <div class="box4">
          <div class="hd">
            <ul class="sub-list">
              <li>担心错过楼盘开盘？</li>
              <li>担心不能第一时间获取楼盘新动态？</li>
              <li>点击下方订阅</li>
              <li>楼盘一手情报抢先知道！</li>
            </ul>
          </div>
          <div class="ipt-area"> {eju:form formid="1"}
            <form method="post" id="{$field.form_name}" action="{$field.action}" onsubmit="{$field.submit}">
              <input type="text" style="margin-top: 15px;" class="ipt common-free-mobile-ipt" id="{$field.attr_1}" name="{$field.attr_1}" placeholder="{$field.itemname_1}">
              <input class="btn btn-dy common-free-mobile-btn white" type="submit" value="获取最新优惠动态">
              {$field.hidden}
            </form>
            {/eju:form} </div>
        </div>
      </div>
      <div class="clear"></div>
      <div class="h10"></div>
      <!-- 订阅 end-->
      <div class="loupan-list-right-1">
        <div style="padding: 10px;">
          <h4 class="center">买新房，找【易居】专业置业顾问</h4>
        </div>
        <p class="center"><img src="{eju:global name='web_templets_pc' /}/skin/images/lp_r_1.jpg"></p>
        <p class="center"><img src="{eju:global name='web_templets_pc' /}/skin/images/lp_r_2.jpg"></p>
      </div>
      <div class="h10"></div>
      <div style="height: 2px;border-top: 1px solid #4ba634"></div>
      <div class="h20"></div>
      <div class="loupan-list-right-1"> <strong>怕买贵？怕被坑？</strong>
        <p class="name">【易居】专业资深置业顾问帮您越过营销陷阱， <br>
          买新房、拿低价</p>
        <div class="h10"></div>
        {eju:form formid="1"}
        <form method="post" id="{$field.form_name}" action="{$field.action}" onsubmit="{$field.submit}">
          <div class="inp-2">
            <input type="text" id="{$field.attr_1}" name="{$field.attr_1}" placeholder="{$field.itemname_1}" maxlength="12">
          </div>
          <div class="h10"></div>
          <div>
            <input type="submit" class="btn lp-btn" value="报名拿底价">
          </div>
          {$field.hidden}
        </form>
        {/eju:form} </div>
    </div>
    <!-- right end--> 
  </div>
  <!-- 问答 end-->
  <div class="clear"></div>
  <div class="h20"></div>
  <!-- 热销楼盘 end--> 
</div>
<script type="text/javascript">
  $(".closesaoma").click(function(){
      $("#saoma").hide();
  });
</script>
<div class="guide">
  <div class="guide">
    <div class="guide-wrap"> <a href="javascript:;" class="edit bmkf-up"><span>报名</span></a> {eju:type typeid='1'}<a href="{$field.typeurl}" class="find"><span>找楼盘</span></a>{/eju:type} <a href="javascript:;" class="report swtopen"><span>找客服</span></a> <a href="javascript:window.scrollTo(0,0)" class="top" title="回顶部"><span>回顶部</span></a> </div>
  </div>
</div>
{eju:static file="skin/css/swiper.min.css" /}
<div class="slider_small_l"> <a href="javascript:void(0);"><img src="{eju:global name='web_templets_pc' /}/skin/images/icon-left.png"></a> </div>
<div class="slider-down-nav">
  <div class="slider-down-main"> <a href="javascript:;" class="slider-pic-close"><img src="{eju:global name='web_templets_pc' /}/skin/images/close2.png"></a> <span class="slider-info">广告</span> 
    <!-- 报名 --> 
    {eju:form formid="1"  success='closeregist'}
    <form method="post" id="{$field.form_name}" action="{$field.action}" onsubmit="{$field.submit}">
      <div class="slider-bm-box"> <span class="slider-txt"> <img class="imd" src="{eju:global name='web_templets_pc' /}/skin/images/ico_phone.png">
        <input class="sl-moblie" type="text" id="{$field.attr_1}" name="{$field.attr_1}" placeholder="{$field.itemname_1}" maxlength="11">
        </span>
        <input type="submit" value="预约看房" class="slider-submit">
        {$field.hidden} <!--<i class="commonality3">免费咨询热线：<span style="font-size: 18px;">{$eju.field.xinfang.sale_phone}</span></i> --></div>
    </form>
    {/eju:form} 
    <!-- 报名：end -->
    <div class="swiper-container2">
      <div class="swiper-wrapper"> {eju:adv pid='7'}
        <div class="swiper-slide">
          <div class="pic"> <a href="{$field.links}" {$field.target}><img src="{$field.litpic}" alt="{$field.title}"></a> </div>
        </div>
        {/eju:adv} </div>
      <!-- Add Pagination -->
      <div class="swiper-pagination"></div>
      <!-- Add Arrows -->
      <div class="swiper-button-next"></div>
      <div class="swiper-button-prev"></div>
    </div>
  </div>
</div>
{eju:static file="skin/js/swiper.min.js" /} 
<script>
    var swiper = new Swiper('.swiper-container2', {
      spaceBetween: 30,
      centeredSlides: true,
      loop: true,
      autoplay: {
        delay: 2500,
        disableOnInteraction: false,
      },
      pagination: {
        el: '.swiper-pagination',
        clickable: true,
      },
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
    });
    $('.slider-down-main').on('click','.slider-pic-close',function(){  
    	$('.slider-down-nav').css('display','none');
    	$('.slider_small_l').css('display','block');
    }); 
	$(".slider_small_l").click(function(){
		$('.slider-down-nav').css('display','block');
    	$('.slider_small_l').css('display','none');
	});
  </script> 
<!-- 图片懒加载 --> 
{eju:static file="skin/js/echo.min.js" /} 
<script>
Echo.init({offset: 0,throttle: 0});
$('.J_indexHouseTab').each(function (i) {
  var _this = $(this);
  _this.find('.index-house-tab-item').removeClass('active').eq(0).addClass('active');
  _this.find('.w-view-center-bar dd').click(function () {
    var index = $(this).index();
    $(this).siblings().removeClass('active');
    $(this).addClass('active');
    _this.find('.index-house-tab-item').eq(index).addClass('active').siblings('.index-house-tab-item').removeClass('active');
  });
});
//热销楼盘、一线海景选项卡
$('.J_indexTopTab .index-tab-title h3').hover(function () {
  var index = $(this).index();
  $(this).addClass('active').siblings('h3').removeClass('active');
  $('.J_indexTopTab').find('.index-tab-container').removeClass('active').eq(index).addClass('active');
});
$('.J_sideMenu').find('li').hover(function () {
  $(this).find('.detail-box').show();
  $(this).find('.aitem').addClass('active');
}, function () {
  $(this).find('.detail-box').hide();
  $(this).find('.aitem').removeClass('active');
});
</script>
<!-- 底部 -->
{eju:include file="footer.htm"/}
<!-- 底部end -->
</body>
</html>
